package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.SysRole;
import com.xjscrm.console.param.role.SysRoleDtoQuery;
import com.xjscrm.console.vo.SysRoleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper {
    int addRole(SysRole sysRole);

    SysRole getById(@Param("id") Long id, @Param("merId") Long merId);

    int updateSysRole(SysRole sysRole);

    List<SysRoleVo> getRoleList(SysRoleDtoQuery sysRoleDtoQuery);

    void deleSysRoleById(@Param("id") Long id, @Param("merId") Long merId);
}
